#https://www.qiushibaike.com/8hr/page/2/
#https://www.qiushibaike.com/8hr/page/3/
#https://www.qiushibaike.com/text/page/2/
import requests
import re
# ret=requests.get('https://www.qiushibaike.com/')
# result=ret.content.decode() #result 是一个字符串
# print(result)
# temp='abcd123ef456'
# ret=re.search('\d+',temp)#列表
# print(ret)
ret=requests.get('https://www.qiushibaike.com/text/page/3/')
result=ret.content.decode() #result 是一个字符串
# print(result)
content=re.findall('<div class="content">.*?<span>(.*?)</span>.*?</div>',result,re.S)
for i in content:
    print(i)